package cn.edu.zhku.citrusmonitor.qa.service;

import java.sql.SQLException;
import java.util.List;

import cn.edu.zhku.citrusmonitor.domain.TbAnswer;
import cn.edu.zhku.citrusmonitor.util.PageBean;

public interface AnswerService {
	
	
	//上传回答
	public void addA(TbAnswer a) throws SQLException;
	
	
	//删除答案
	public int  removeA(String answer) throws SQLException;
	
	//修改答案
	public int modifyA(TbAnswer a) throws SQLException;
	
	//根据关键字查找未回答的问题
	public List<TbAnswer> findAByWord(String content) throws SQLException;
	
	//分页显示未回答的问题
	public TbAnswer showA(String questionId) throws SQLException;


	public String findExpertPasswordById(int expertId) throws SQLException;


	public PageBean<TbAnswer> showAll(int currentPage, int pageSize) throws SQLException;


	public int delAll(String[] ids) throws SQLException;
	
	

}
